package com.senior.sendmessage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.senior.sendmessage.entity.Book;
import com.senior.sendmessage.mapper.BookMapper;
import com.senior.sendmessage.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bjl_m
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements BookService {
    private BookMapper bookMapper;

    @Autowired
    public void setBookMapper(BookMapper bookMapper) {
        this.bookMapper = bookMapper;
    }

    @Override
    public List<Book> getBook() {
        return bookMapper.getBook();
    }

    @Override
    public void saveBook(Book book) {
        bookMapper.saveBook(book);
    }
}
